package com.rd.student.jike.class4.xiayinyin.day0731;

import java.util.HashSet;

public class Exercises05 {
    public static void main(String[] args) {
        HashSet<Integer> set = new HashSet<>(20);
        while (set.size() < 20){
            int random = (int)(Math.random()*50);
            set.add(random);
        }
        System.out.println(set);
    }
}
